package com.ecoolex.ying.space.core.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.ying.space.core.mapper.MarktingCatalogGoodsMapper;
import com.ecoolex.ying.space.entity.MarktingCatalogGoods;

public interface MarktingCatalogGoodsDAO extends MarktingCatalogGoodsMapper {
	
	long countWithCatalog(@Param("catalogId") Integer catalogId, @Param("goodsName") String goodsName);

    List<MarktingCatalogGoods> queryWithCatalog(@Param("catalogId") Integer catalogId, @Param("goodsName") String goodsName , @Param("sorts") String sorts , @Param("page") Page page);
    
    long countMarktingCatalogGoods(@Param("catalogId") Integer catalogId);

    List<MarktingCatalogGoods> queryMarktingCatalogGoods(@Param("catalogId") Integer catalogId, @Param("page") Page page);

    List<MarktingCatalogGoods> queryByCatalogAndSize(@Param("catalogId") Integer catalogId,@Param("size") int size);
}